Tag Link | [String->Append] | Category | String |
---|---|---|---|
Type | Member | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | None (Modifies in place) | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
[String->Append] casts the parameters to strings and appends them to the string variable. Modifies the string variable and returns no value. Requires at least one string parameter.
This tag should only be called on variables which contain a string value.
[String Variable->(Append: 'String Value')]
Required Parameters | |
---|---|
String Value | The string which should be appended to the base string. |
To append a value to a string variable:
Use the [String->Append] tag. The following example shows a string variable named MyVariable that contains the words "The quick brown fox". The [String->Append] tag is used to add the rest of the phrase and then the entire value of MyVariable is output, "The quick brown fox jumped over the lazy dog!".
<?LassoScript
Var: 'MyVariable'='The quick brown fox ';
$MyVariable->(Append: 'jumped over the lazy dog!');
Output: $MyVariable;
?>
The quick brown fox jumped over the lazy dog!